package com.spring.mvc.controller;

import com.spring.mvc.controller.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * @auther 尚智江
 * @Date 2022/10/18 10:49
 */
@Controller
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/login1")
    public String login(User user){
        String name = "hhh";
        String password = "1234";
        if(name.equals(user.getName())&&password.equals(user.getPassword())){
            System.out.println(12312333);
            return "success";
        }
        return "login";
    }



}
